A brief tutorial of Editor Vim,including the Unique Philosophy and Basic Commands!
“Writing English words and writing code are very different activities. When programming, you spend more time switching files, reading, navigating, and editing code compared to writing a long stream.”—— < The Missing Semester of Your CS Education >
Vim 是一个模态编辑器(modal editor),它的设计哲学是:编辑操作应当通过键盘组合完成,而非依赖鼠标或菜单。
“Vim avoids the use of the mouse, because it’s too slow; Vim even avoids using the arrow keys because it requires too much movement.”—— < The Missing Semester of Your CS Education >
deffizz_buzz(limit): for i inrange(1, limit + 1): if i % 3 != 0and i % 5 != 0: print(i) elif i % 3 == 0and i % 5 != 0: print('fizz') elif i % 5 == 0and i % 3 != 0: print('buzz') else: print('fizzbuzz')